home *** CD-ROM | disk | FTP | other *** search
- /*
- * assert.h
- * sec 4.2 ansi draft
- */
-
- /* Gnu derived, CopyLeft applies, see file COPYING */
-
- /* Allow this file to be included multiple times
- with different settings of NDEBUG. */
- #undef assert
- #undef __assert
-
- #ifdef NDEBUG
- #define assert(cond)
-
- #else
-
- #ifdef __STDC__
- # define assert(expression) \
- ((expression) ? 0 : __assert (#expression, __FILE__, __LINE__))
- # define __assert(expression, file, line) \
- (__eprintf ("Failed assertion " expression \
- " at line %ld of `" file "'.\n", (long)line), \
- abort ())
-
- #else
-
- # define assert(expression) \
- ((expression) ? 0 : __assert ( __FILE__, __LINE__))
- # define __assert(file, line) \
- (__eprintf ("Failed assertion at line %ld of `%s'.\n", (long)line, file), \
- abort ())
-
- #endif /* __STDC__ */
-
- void __eprintf (); /* defined in fprintf.c */
-
- #endif /* NDEBUG */
-